package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author xdr630
 * @version 1.0
 * @date 2023/7/8 18:31
 */
public interface DictService extends IService<Dict> {
    List<Dict> findChildData(Long id);
    void exportData(HttpServletResponse response) throws IOException;
    void importData(MultipartFile file) throws IOException;
    //得到医院等级
    String getNameByValueAndParentId(Integer Hostype,Integer parentId);
    String getNameByValueAndParentIdByString(String Hostype,String parentId);
    //得到医院完整地址
    String getDetailAddress(Integer provinceCode,Integer cityCode,Integer districtCode);
    //dicCode和value得到字典名称
    public String getNameByValueAndDicCode(String Hostype, String DicCode);


    List<Dict> getNamesBydictCode(Integer dictCode);

     List<Dict> getNamesBydictCode1(String code);

    List<String> getNamesByChildDictCode(Integer dictCode);
     List<String> getNamesByChildDictCode1(Integer parent);

    String getNameByValue(Integer value);


    String getNameByStringValue(String value);
}
